package com.yizhuoyan.his.util;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class BeanMap extends  ArrayListMap<String, Object>{
	

	private BeanMap(int size) {
		super(size);
	}

    @Override
    public BeanMap append(String key, Object value) {
	    this.append(key, value);
        return this;
    }
    public static BeanMap ofOnly(String key, Object value){
        return new BeanMap(1).append(key,value);
    }
    public static BeanMap of(String key, Object value){
        return new BeanMap(1).append(key,value);
    }
    public static BeanMap of(String key1, Object value1,String key2,Object value2){
        return new BeanMap(2)
                .append(key1,value1)
                .append(key2,value2);
    }
    public static BeanMap of(String key1, Object value1,
                             String key2,Object value2,
                             String key3, Object value3){
        return new BeanMap(3)
                .append(key1,value1)
                .append(key2,value2)
                .append(key3,value3);
    }
    public static BeanMap of(String key1, Object value1,
                             String key2,Object value2,
                             String key3, Object value3,
                             String key4, Object value4){
        return new BeanMap(4)
                .append(key1,value1)
                .append(key2,value2)
                .append(key3,value3)
                .append(key4,value4);
    }


	public static BeanMap of(int size){
		BeanMap map=new BeanMap(size);
		return map;
	}



	
	
	
}
